<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 引入react核心库 -->
    <script src="https://cdn.bootcdn.net/ajax/libs/react/16.14.0/umd/react.development.js"></script>
    <!-- 引入react-dom   用于支持react操作dom -->
    <script src="https://cdn.bootcdn.net/ajax/libs/react-dom/16.14.0/umd/react-dom.development.js"></script>
    <!-- 引入babel 用于将jsx转换为js-->
    <script src="https://cdn.bootcdn.net/ajax/libs/babel-standalone/6.4.4/babel.min.js"></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/babel-core/4.0.1/browser.min.js"></script>
    <!-- <script src="https://cdn.bootcdn.net/ajax/libs/babel-polyfill/7.7.0/polyfill.min.js"></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/babelfish/1.1.0/babelfish.min.js"></script> -->
    <!-- <script src="https://cdn.bootcdn.net/ajax/libs/babel-core/6.1.6/browser.min.js"></script> -->
</head>
<body>
    <div id="test"></div>
    <script type="text/babel"> /*此处必须写babel*/
        //1. 创建虚拟DOM
        let VDOM = <h1>Hello,React</h1>
        // 2. 让React将虚拟DOM转换为真实DOM，插入到页面
        ReactDOM.render(VDOM,document.getElementById("test"))
        // react-dom.render(VM,document.getElementById('test'))
        
    </script>
</body>
</html>